//
//  BatchOperaionParam.h
//  OneStoreFramework
//
//  Created by Aimy on 3/25/15.
//  Copyright (c) 2015 OneStore. All rights reserved.
//

#import <Foundation/Foundation.h>

@class BatchOperaionParam,NetworkOperationManager;

typedef void(^BatchCompletionBlock)(BatchOperaionParam *batchOperationParam, NSError* anError);

@interface BatchOperaionParam : NSObject

@property (strong, nonatomic, readonly) NSMutableDictionary *responseObjects;//存储的所有返回对象
@property (nonatomic, copy) BatchCompletionBlock completeBlock;//完成的回调
/**
 *  创建一组调用
 *
 *  @param manager manager
 *  @param params        list of NetworkOperationParam
 *  @param operations    list of NSURLSesstionDataTask
 *  @param completeBlock 回调
 *
 *  @return BatchOperaionParam 对象
 */
+ (instancetype)requestWithNetworkOperationManager:(NetworkOperationManager *)manager params:(NSArray *)params operations:(NSArray *)operations andCompleteBlock:(BatchCompletionBlock)completeBlock;

@end
